#==============================================================================
#  _   _                         ____                _             
# | | | | ___  _ __ ___   ___   / ___|___  _ __ ___ (_)_ __   __ _ 
# | |_| |/ _ \| '_ ` _ \ / _ \ | |   / _ \| '_ ` _ \| | '_ \ / _` |
# |  _  | (_) | | | | | |  __/ | |__| (_) | | | | | | | | | | (_| |
# |_| |_|\___/|_| |_| |_|\___|  \____\___/|_| |_| |_|_|_| |_|\__, |
#                                                            |___/ 
#------------------------------------------------------------------------------
# Project:	Home Coming / 2D platform
# Author:	zx.longgi
# Time:		08/07-2010 
# Usage:	static object, that contains texture and point list.
# Description:	An object that ready to use, a convex polygon that have texture
#		and coordinates. But can not move.
# ClassName:	zobject_static
#==============================================================================

from zobject import zoject

class zobject_static(zobject):
	"""static object, that contains texture and point list"""
	# number of points (3,4)
	vertice_count = 0
	
	# offset list of vertice, based on the logic postion, count clockwise
	# like self [[-1,-1],[-1, 1],[1, 1],[1, -1]]
	vertex_list = []
	
	# is self object use texture
	is_use_texture = False
	
	# is self object visible
	is_visible = False
	
	# texture resource string
	tex_resource = ""
	
	# texture coordinates (3,4)
	# work like vertex_list
	# self property can be set even self obj invisible or use no texture.
	texcoord_list = []
	
	# colour / alpha
	proper_colour = [0, 0, 0, 0]
	
	def __init__(self):
		self.vertice_count = 0
		self.vertex_list = []
		self.is_use_texture = False
		self.is_visible = False
		self.texcoord_list = []
		self.proper_colour = [0, 0, 0]

	def __init__(self, vxct, vxli, isut, isvi txli, ppcl):
		self.vertice_count = vxct
		self.vertex_list = vxli
		self.is_use_texture = isut
		self.is_visible = isvi
		self.texcoord_list = txli
		self.proper_colour = ppcl